import request from '@/utils/request'

const apiUrl = "/api/training-sign"

// 保存或更新培训签到
export function saveTrainingSign(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}


// 获取培训签到详情
export function getTrainingSignDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}
// 分页查询培训签到列表
export function getTrainingSignPage(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}
// 批量删除培训签到
export function removeTrainingSigns(ids) {
    return request({
        url: `${apiUrl}/batch`,
        method: 'post',
        data: ids
    })
} 